package com.goldwind.channel.dao;

import com.goldwind.pojo.User;
import com.goldwind.pojo.UserChannel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserChannelMapper {
    /*查询所有用户频道信息*/
    List<UserChannel> selectAll();

    /*多条件查询用户频道信息*/
    List<UserChannel> selectByCondition(
            @Param("ucId") int uCId,
            @Param("cId") int cId,
            @Param("userId")int userId,
            @Param("notification")int notification,
            @Param("isFavorite")int isFavorite
    );

    /*根据频道id查询出用户信息*/
    List<User> selectUserByChannelId(
            @Param("cId") int cId
    );

}
